package com.ljwm.dubbo.demo.consumer;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * Created by yuzhou on 2017/8/4.
 */
public class DemoConsumer {
  private static final Logger _log = LoggerFactory.getLogger(DemoConsumer.class);

  public static void main(String[] args) throws IOException {
    _log.info("Starting context ...");
    ClassPathXmlApplicationContext context =
      new ClassPathXmlApplicationContext(new String[]{"META-INF/spring/dubbo-demo-consumer.xml"});
    context.start();

    _log.info("Context started, please press Enter to exit");
    //System.in.read();
  }
}
